package com.lj.luoye.lotteryticket.analysis;

import com.lj.luoye.lotteryticket.entity.LuckEntity;
import com.lj.luoye.lotteryticket.entity.Unionlotto;

import java.util.List;

public interface CheckCallback {
    class Result{
        public boolean ok;//   bool        `json:"ok"`
        public int code;//Code string      `json:"code"`
        public String msg;//Msg  string      `json:"msg"`
        public Unionlotto right;//开奖结果
        public List<Unionlotto> unionlottoWithResultList;//增加中奖结果的号码列表
        public List<LuckEntity> luckEntityList;//中奖结果

        public Result() {
        }

        public Result(boolean ok, int code, String msg) {
            this.ok = ok;
            this.code = code;
            this.msg = msg;
        }

        public Result(boolean ok, int code, String msg, Unionlotto right, List<Unionlotto> unionlottoWithResultList, List<LuckEntity> luckEntityList) {
            this.ok = ok;
            this.code = code;
            this.msg = msg;
            this.right = right;
            this.unionlottoWithResultList = unionlottoWithResultList;
            this.luckEntityList = luckEntityList;
        }
    }
    void callBack(Result result);
}
